package com.jsb.laundry.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 洗衣分类表
 *
 * @JsonInclude(JsonInclude.Include.NON_NULL) //为NULL时不序列化
 * @JsonInclude(JsonInclude.Include.NON_EMPTY) //为""或为NULL时不序列化
 * @TableName laundry_category_v1
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "分类对象", description = "分类视图接口数据")
//@JsonInclude(JsonInclude.Include.NON_NULL)
public class CategoryVo implements Serializable {
    private static final long serialVersionUID = 7L;

    @ApiModelProperty(value = "分类id", dataType = "String")
    private String cateId;
    @ApiModelProperty(value = "分类名称", dataType = "String")
    private String cateName;
    @ApiModelProperty(value = "子分类", dataType = "list")
    private List<LaundryCategoryChildren> goodsDataList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class LaundryCategoryChildren {
        @ApiModelProperty(value = "商品id", dataType = "string")
        private String goodsId;
        @ApiModelProperty(value = "商品名称", dataType = "string")
        private String goodTitle;
        @ApiModelProperty(value = "商品图片", dataType = "string")
        private String goodsImg;
        @ApiModelProperty(value = "", dataType = "string")
        private String goodsSales;
        @ApiModelProperty(value = "", dataType = "string")
        private String serveId;
        @ApiModelProperty(value = "", dataType = "string")
        private String bottomServePrice;
        @ApiModelProperty(value = "特殊商品展示(0:可加入购物车,1:直接进入确认订单页面)", dataType = "string")
        private String hintFlag; //特殊商品展示(0:可加入购物车,1:直接进入确认订单页面)
    }
}
